package com.interview.javabasic.SingleTon;

/*
@李子宁
Happy,happy everyday!
冲鸭！
2021/3/2

*/
public class SingleTonInnerClassDemo {
    private SingleTonInnerClassDemo(){
    }

    private static class SingleTonInner{
        private static final SingleTonInnerClassDemo singleTonInnerClassDemo = new SingleTonInnerClassDemo();
    }

    public static final SingleTonInnerClassDemo getInstance(){
        return SingleTonInner.singleTonInnerClassDemo;
    }

}
